Can i change hdc to hdd on a NAS?

Associate
Joined
19 Oct 2002
Posts
1,936
Location
Maidenhead
Can change the ide numbers on my NAS?



In here ide3 should be ide4, is that possible to do, if so how do i do it?

Currently the drive is configured as /dev/hdc - im assuming it needs to be /dev/hdd?

Cheers
 
Currently the drive is configured as /dev/hdc - im assuming it needs to be /dev/hdd?

Negative, /dev/hdc is the hardware mapping, you simply need to change either the mount point or the samba share name (Im not sure which without seeing your setup).

I would guess though, that ide3 is the name of a share in your samba config on the NAS. Take a look in /etc/samba/smb.conf and see if you can see the ide3 in there, if so change it and restart the samba deamon.

Failing that, take a look in /etc/fstab and change the directory where /dev/hdd is mounted.

If you need more help, post /etc/fstab and /etc/samba/smb.conf in here :) Im assuming your NAS is Linux and not BSD based, so those config files may be in different locations for you.
 
Sorry, forgot i posted this. Got really bogged down with this last week but having been trying to get it sorted this weekend.

I think i am going to have to back up the data on the drives and reformat them. I've done 2 drives so far

I have a: 35HD-QUAD-NAS

People keep mentioning Samba, but its more Linux isn't? I need to figure out how to use tunefs again right now and doing my nut in. Would Samnba work on my nas and would there be an advantage of using it?
 
Looks like that unit runs linux. As posted above, it'll just be an entry in smb.conf or fstab.

You need to telnet in to edit the files

How do I get shell access to my NAS box as root?

You'll need a telnet program. Simply telnet to your NAS box and enter 'root' as username and 'admin' as password.

If telnet doesn't work (newer firmwares have it turned on), try visiting http://yourip/cgi/telnet/telnet.cgi and ticking the telnet box
 
Sorry, back again.

Yes i do use telnet and have been trying to format a drive with it. The first drive i format using the gui always works perfectly, but then when i add another drive i cannot format it through the gui.
The only way i have gotten the 2nd drive to work is to format both drives as the 1st drive, but the 2nd drive is only 100mb. I was going to try deleting the 1st partition to see if the first visible partition in the NAS was the main one, but i got impatient waiting for it to format .

If i have an unformatted drive and i use: /sbin/mke2fs -m 0 -v -j -b 4096 /dev/hda1

Should that format it as one ext2 partition?

Mmm no it doesn't ... fdisk /dev/hdb !
Ohhhh, mkfs means make file system :)
 
Last edited:
hda is the first hard disk, hdb is the second etc

hda1 is the first partition on the first hard disk, hdb3 would be the third partition on the second disk etc.

e.g. fdisk /dev/hda will let you examine and create delete partitions on the hda disk.

then use mkfs to format your new partitions
 
Yeah,

I did fdisk /dev/hdb for the 2nd disk and used primary partition option and 83 for the file system.
Then did this: /sbin/mke2fs -m 0 -v -j -b 4096 /dev/hdb1

It worked, but the partition is ext3 and i was really wanting it to be ext2

What caused that? Was it the primary partition option, because i tried to use the extended option and it wouldn't let me :confused:

Is there an easy way to convert is to ext2? I tried to follow this but it wouldn't let me unmount it :(
 
Last edited:
Do what you did before, but supply -t ext2 to mkfs.

/sbin/mke2fs -t ext2 /dev/hdb1

Should work, you will need to unmount the drive first, 'umount /dev/hdb'
 
Yeah,

I did fdisk /dev/hdb for the 2nd disk and used primary partition option and 83 for the file system.
Then did this: /sbin/mke2fs -m 0 -v -j -b 4096 /dev/hdb1

It worked, but the partition is ext3 and i was really wanting it to be ext2

What caused that? Was it the primary partition option, because i tried to use the extended option and it wouldn't let me :confused:

It's likely the -j switch which creates a journal. Ext2 is the same as Ext3. But Ext3 has a journal.
 
Ahhhhhhh... well all the problems i have been having are when i've been using Ext3, so i wanted to try Ext2 to see if it helped.

Got it all working now :D

Thanks for your help ;)
 
Last edited:
Back
Top Bottom