Can you tell me how to mount my hda1 on my Mandrake distro running in Hdb I can use
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Can you tell me how to mount my hda1 on my Mandrake distro running in Hdb I can use
Hello,
If anyone can help this newbie mount his hda1, which I believe is my original hardrive. I had fedora 1 installed on hda and then installed Mandrake on hdb thinking I could set lilo to go to either. Well, Fedora was to never be seen again. I think it is still there though. Anyway, here is my /etc/fstab
thanks! I want my users to be able to save stuff to it. I will reformat it if I need to. I just want the space. Thanks! -Greg
/dev/hdb1 / ext3 defaults 1 1
none /dev/pts devpts mode=0620 0 0
/dev/hdb8 /home ext3 defaults 1 2
/dev/hdc /mnt/cdrom auto umask=0,user,iocharset=iso8859-1,codepage=850,noauto,ro,exec 0 0
/dev/hdd /mnt/cdrom2 auto umask=0,user,iocharset=iso8859-1,codepage=850,noauto,ro,exec 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,--,umask=0,iocharset=iso8859-1,sync,codepage=850 0 0
none /proc proc defaults 0 0
/dev/hdb9 /tmp ext3 defaults 1 2
/dev/hdb6 /usr ext3 defaults 1 2
/dev/hdb7 /var ext3 defaults 1 2
/dev/hda2 swap swap defaults 0 0
/dev/hdb5 swap swap defaults 0 0
I definitely used Fedora a bunch of times. I think my boot program is on hda, but I want to use the rest of the drive. What should I do to save the boot but format and/or mount the drive to use. Thanks.-Greg
su root
mkdir /mnt/hda
mount -t vfat /dev/hda /mnt/hda
and then go in and check by hand what's there. first though, i would look at fdisk in a little more detail. are you comfortable navigating around in fdisk? basically it looks to me like you wiped out the partition table, and now you just have a small (100 mb) /boot partition, and another (19 gig) /swap partition. i have trouble believing that though, so maybe my eyes are lying to me. anyway, here's what i would do.
to run fdisk, it's best to change to runlevel 1, which means most background processes are shut down. do this in a terminal:
su root
telinit 1
(login again)
su root
fdisk /dev/hda
now press p and you should see 2 partions listed, one that has "82 (linux swap)" toward the right-hand side, and one that's "83 (linux)". at this point, the best thing i can think of is to try adding a new partition, and see how big it allows you to make it. then if you want to try recovering data, exit fdisk WITHOUT writing the changes to disk and you won't have made any permanent changes, or if you want to just reformat and create space, you can do that too. so here: http://www.bitbenderforums.com/vb22/...?postid=311808 is a good walkthrough of fdisk (it's tailored to people installing slackware, but it's still good step-by-step instructions with screenshots to boot).
basically though, you want to create a (n)ew (p)rimary partition, hda(3). now it should prompt you for starting cylinder, just hit enter and it will automatically start at the next available one (where hda2 stops). when it asks for last cylinder, you have two options: hit enter to go to the end of the disk, and then check how big it is with (p)rint partition table, or instead of giving it the last cylinder, you can specify how big you want the partition to be in megabytes by entering a number like this
+10000M (10 gigabytes)
+500M (500 megabytes)
if you're going to format the disk and create a new partition table though, you might as well delete hda2 first, since you don't need 2 /swap partitions. anyway, i hope i'm not confusing you even more, post up if you want more/better advice!
Thanks I will try to do this.
I am going to erase the drive I guess hda2 completely and recreate a hda2, Like I said, my boot program, or whatever its called is on Hda but I want to erase the rest of the drive and use its space. Any more advice I appreciate, but I will try what you said. -Greg
Hey MCD,
Thanks for all the advice. So, I erased the hda2 swap partition since I had a swap on hdb. I left the boot parition, and reformatted the hda2 as a journalised FS Ext 3? Does that sound right? Still trying to figure out how to mount it on my desktop or somewhere so I can save files to it. I named it /home2
which I don't know why other than trying to figure it out and I knew I had a /home already.
Thanks. -Greg
I will try your mounting advice again.
alright, it seems like you're getting the hang of fdisk, it's a useful thing to understand. ^^
i was going back over my advice, and aside from my typo in not including the partition number to /dev/hda, i also wanted to explain a little better:
Quote:
su root
mkdir /mnt/hda
mount -t vfat /dev/hda /mnt/hda
that should be
mount -t <filesystem type> /dev/hdax /mnt/path
in other words, you have to specify the filesystem type, which partition to mount, like /dev/hda1 or /dev/hdb3, and the directory you would like the device mounted to (mount-point iirc).
so you need to decide on a filesystem type. if you only want it for use with linux computers, ext3 is a fine choice. if you want to share the partition with windows computers, you should make it FAT32 or NTFS. write support for NTFS is still experimental/dangerous in linux, so if you want to be able to write to the drive in linux you should probably make the partition FAT32. the only issue may be the maximum partition size allowed by FAT32...i don't remember whether this will matter or not. worst case scenario: you make multiple partitions.
as for the mount path, you can make it whatever you like, but i would suggest something like /mnt/multimedia or /mnt/storage. to have it automatically mounted when the computer is rebooted, you can add an entry in your /etc/fstab like this:
/dev/hda2 /mnt/multimedia vfat defaults,umask=000 0 0 <-- for fat32
/dev/hda2 /mnt/multimedia ntfs defaults,umask=000,ro 0 0 <-- for ntfs
as for creating a shortcut for your desktop, that will really depend on which distro the user's computer is. for mandrake, i know there is an option (maybe right-click on the desktop, maybe through adding a launcher or something) for adding a hard drive icon to the desktop. i've used it before.
glad to hear it! make sure to read man mount, and google/linux fstab. just read around and see what you find, i always find that the more i read before i begin, the better i understand what went wrong at the end
okay,
I created the dir /mnt/otherstuff and i typed mount -t vfat /dev/hda5 /mnt/otherstuff
this seemed to have worked, but now I would like to know what to type in the /etc/fstab to access it as a user. I tried what you said about 000 0 0 but it didn't seem to work, any thoughts? I've been searching...
here's my fstab
well, first of all, did you create /otherstuff or /mnt/otherstuff? make sure you're mounting it in the right place. second, you should add defaults in as an option, and third, it's umask, not unmask. so it should look like this:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.