View previous topic :: View next topic |
Author |
Message |
JP Linux Guru

Joined: 07 Jul 2025 Posts: 6670 Location: Central Montana
|
Posted: Mon May 26, 2025 8:18 pm Post subject: Naming your partitions |
|
|
I'm using R.I.P. Linux to try to recover my sidux install. I can mount any of the partitions, change size, change filesystems, etc, but I would like to make hda4 to be my /home partition so I can transfer all of my /home stuff onto hda4. Is there any way I can name hda4 to be my /home/JP from the command line? I've looked at cfdisk, parted, and gparted (all on the RIP disk), but none of them offers me the option to name the partition.
_________________ Dell Box - Arch Linux
Dell Lappy - DreamLinux 3.5 - Default OS
Mepis 8.0 - Backup
|
|
Back to top |
|
platinummonkey Advanced Member

Joined: 01 Mar 2025 Posts: 732 Location: Texas
|
|
Back to top |
|
JP Linux Guru

Joined: 07 Jul 2025 Posts: 6670 Location: Central Montana
|
Posted: Mon May 26, 2025 10:27 pm Post subject: |
|
|
platinummonkey wrote: | er, the /home is a mount point. that can be changed by either using the mount command, or editing your ftsab to mount as /home  |
That lost me, I think ...... despite the numerous posts, I'm neither a geek or guru ...... I need to read about that .... editing the /etc/fstab I might be able to figure out, but I don't understand how I can mount hda4 as /home ..... a little help would be appreciated THX
I'm using slax now, because Midnight Commander was not working for me ...... I tried xterm and there was virtually nothing in the /etc/fstab, so I don't think I was mounting the partition correctly.
Kate can't find hda1, only hda4 & hda6 and the stuff I wrote down the last time I had to mount was using the slax disk , but now it doesn't work at all.
I can find lots of info in my books on mounting floppies and cdroms, but nothing on actually mounting partitions, or naming them for mount points.
Code: | root@slax:~# mkdir /mnt/hda1
root@slax:~# mount /dev/hda1 /mnt/hda1
mount: wrong fs type, bad option, bad superblock on /dev/hda1,
or too many mounted file systems
|
_________________ Dell Box - Arch Linux
Dell Lappy - DreamLinux 3.5 - Default OS
Mepis 8.0 - Backup
|
|
Back to top |
|
Germ Keeper of the BIG STICK

Joined: 30 Apr 2025 Posts: 12452 Location: Planet Earth
|
Posted: Tue May 27, 2025 12:40 am Post subject: |
|
|
To see exactly what partitions you have:
In fstab there should be a line like: /dev/hda4 /mnt/foo bla bla bla
To mount hda4 as /mnt/home make it look like: /dev/hda4 /mnt/home bla bla bla
Just make sure /mnt/home actually exists
hda4 is the device name of the partition.
/mnt/home is the directory to mount it in.
_________________ Laptop: Mandriva 2025 PowerPack - 2.6.33.5-0.2mnb
Desktop: Mandriva 2025 Free - kernel 2.6.33.2-1mib
|
|
Back to top |
|
platinummonkey Advanced Member

Joined: 01 Mar 2025 Posts: 732 Location: Texas
|
|
Back to top |
|
JP Linux Guru

Joined: 07 Jul 2025 Posts: 6670 Location: Central Montana
|
|
Back to top |
|
tlmiller Ultimate Member

Joined: 01 May 2025 Posts: 2432 Location: MD, USA
|
Posted: Tue May 27, 2025 9:31 pm Post subject: |
|
|
1. You wouldn't actually MAKE /mnt/home on sda4. You'd (as root)
mkdir /mnt/home
mount /dev/sda4 /mnt/home -o yaddah yaddah
2. Double check that /mnt/home DOES exist, and that nothing is already mounted there (ie - empty directory)
_________________ Debian Squeeze, Arch, Kubuntu mostly. Some Mandriva. Some Windows.
Desktops: shadowdragon, medusa
Laptops: bluedrake, banelord, sandwyrm, aardvark.
|
|
Back to top |
|
JP Linux Guru

Joined: 07 Jul 2025 Posts: 6670 Location: Central Montana
|
|
Back to top |
|
tlmiller Ultimate Member

Joined: 01 May 2025 Posts: 2432 Location: MD, USA
|
Posted: Wed May 28, 2025 12:19 am Post subject: |
|
|
and fdisk -l does list /dev/sda4 as a Linux partition? doing an ls of /mnt does show home as a directory?
_________________ Debian Squeeze, Arch, Kubuntu mostly. Some Mandriva. Some Windows.
Desktops: shadowdragon, medusa
Laptops: bluedrake, banelord, sandwyrm, aardvark.
|
|
Back to top |
|
JP Linux Guru

Joined: 07 Jul 2025 Posts: 6670 Location: Central Montana
|
Posted: Wed May 28, 2025 2:33 am Post subject: |
|
|
tlmiller wrote: | and fdisk -l does list /dev/sda4 as a Linux partition? doing an ls of /mnt does show home as a directory? |
sda4 is a 20Gb partition ..... #ls mnt shows nothing.
_________________ Dell Box - Arch Linux
Dell Lappy - DreamLinux 3.5 - Default OS
Mepis 8.0 - Backup
|
|
Back to top |
|
JP Linux Guru

Joined: 07 Jul 2025 Posts: 6670 Location: Central Montana
|
|
Back to top |
|
tlmiller Ultimate Member

Joined: 01 May 2025 Posts: 2432 Location: MD, USA
|
Posted: Wed May 28, 2025 9:07 am Post subject: |
|
|
Good news indeed!!
_________________ Debian Squeeze, Arch, Kubuntu mostly. Some Mandriva. Some Windows.
Desktops: shadowdragon, medusa
Laptops: bluedrake, banelord, sandwyrm, aardvark.
|
|
Back to top |
|
masinick Linux Guru

Joined: 03 Apr 2025 Posts: 8615 Location: Concord, NH
|
Posted: Wed May 28, 2025 7:02 pm Post subject: |
|
|
Good job JP! Stick with it!
Any success on determining whether you have a bad memory stick - as Anti was suspecting? Memory is REAL cheap right now. Given that you can get USB sticks with a couple GB for $10-20 I suspect that system RAM is not that much more expensive. Problem is, you have to find the right type for your system. |
|
Back to top |
|
JP Linux Guru

Joined: 07 Jul 2025 Posts: 6670 Location: Central Montana
|
Posted: Thu May 29, 2025 6:30 am Post subject: |
|
|
I'm going to be looking in to that, THX.
_________________ Dell Box - Arch Linux
Dell Lappy - DreamLinux 3.5 - Default OS
Mepis 8.0 - Backup
|
|
Back to top |
|
JP Linux Guru

Joined: 07 Jul 2025 Posts: 6670 Location: Central Montana
|
Posted: Wed Jun 04, 2025 3:51 am Post subject: |
|
|
tlmiller wrote: | Good news indeed!! |
Any idea how to undo this Tim?
_________________ Dell Box - Arch Linux
Dell Lappy - DreamLinux 3.5 - Default OS
Mepis 8.0 - Backup
|
|
Back to top |
|
|